#ifndef MAINWINDOWS_H
#define MAINWINDOWS_H

#include <QtGui/QDialog>
#include <QHttp>
#include <QUrl>
#include "frmmanga.h"
#include "resourcemanager.h"
#include "onemanga.h"

namespace Ui
{
    class MainWindowsClass;
}

class MainWindows : public QDialog
{
    Q_OBJECT

public:
    MainWindows(QWidget *parent = 0);
    ~MainWindows();

private:
    QImage m_Img;
    QString m_suiv;
    OneManga m_onemanga;
    frmManga m_frm;
    ResourceManager* m_r;
    QString m_prec;
    QString m_bookmarkaddress;
    Ui::MainWindowsClass *ui;
    virtual void paintEvent(QPaintEvent * event);
    void updatecboBookmark();

private slots:
    void on_btnBookmark_clicked();
    void on_btnMajBookmark_clicked();
    void on_cboBookmark_currentIndexChanged(int index);
    void on_cboMangas_currentIndexChanged(int index);
    void on_btnSuiv_clicked();
    void on_btnPrec_clicked();
    void on_btnView_clicked();
    void onPrevReady(QString s);
    void onNextReady(QString s);
    void onImgReady(QByteArray b);
    void onMangasReady(QMap<QString, QString> mangas);
    void onFrmMangaFinished(int result);
};

#endif // MAINWINDOWS_H
